<?php

class PEAR2_REST_Server_Output {

	public $verb;

	public $code;

	public $body;

	public $headers = array();

	public function flush() {

		header("HTTP/1.0 $this->code");

		foreach($this->headers as $name => $value) {
			header("$name: $header");
		}

		echo $this->body;
	}
}
